package com.cct.digitalarchapi.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.cct.digitalarchapi.pojo.ArchDeptCategory;
import com.cct.digitalarchapi.pojo.vo.DeptCategoryVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface ArchDeptCategoryMapper extends BaseMapper<ArchDeptCategory> {
   IPage<DeptCategoryVo> getAllDeptCategory(IPage<DeptCategoryVo> page, @Param("archCateName") String archCateName
           , @Param("archDeptName") String archDeptName);

    void addDeptCategory(ArchDeptCategory archDeptCategory);

    void deleteDeptCategory(@Param("archDeptCatId") int archDeptCatId);

    void updateDeptCategory(ArchDeptCategory archDeptCategory);

    int qryHaveDeptCategory(@Param("archDeptCateCode") String archDeptCateCode);

    List<DeptCategoryVo> getCateByDept(@Param("archDeptName") String archDeptName);

    List<ArchDeptCategory> getAllDeptCate();

}
